package com.example.ndkjnidemo.home.methodfield;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.blankj.utilcode.util.LogUtils;
import com.example.ndkjnidemo.databinding.ActivityMethodFieldBinding;

/**
 *
 */
public class MethodFieldActivity extends AppCompatActivity {

    private static final String TAG = "RefActivity";
    private ActivityMethodFieldBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        binding = ActivityMethodFieldBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        //===
        onJniMethodField();
    }

    public void onJniMethodField() {
        JNIMethodField jniMethodField = new JNIMethodField();

        AppInfo javaInfo = new AppInfo("com.wg.com", 30);
        javaInfo.setSize(500);
        jniMethodField.getAppInfoFromJava(javaInfo);

        AppInfo info = jniMethodField.createAppInfoFromJni();
        LogUtils.i("info = " + info);
    }
}